var rp = require('request-promise')

exports.main = (event, context) => {
  var res = rp('https://api.douban.com/v2/book/isbn/' + event.isbn + '?apikey=0df993c66c0c636e29ecbb5344252a4a').then(html => {
    return html;
  }).catch(err => {
    console.log(err);
  })
  return res
}